import { GOODS, GOODS_COLUMNS, ADMIN } from './api';
import { METHOD, request } from '@/utils/request';
//文章上传图片
export async function uploadImgApi(params) {
  return request('/imgUpload', METHOD.POST, params);
}
//修改项目名称
export async function editProjectApi(params) {
  return request(ADMIN + '/editProjectName', METHOD.PUT, params);
}

export async function goodsList(params) {
  return request(GOODS, METHOD.GET, params);
}

export async function goodsColumns() {
  return request(GOODS_COLUMNS, METHOD.GET);
}

export default { uploadImgApi, editProjectApi, goodsList, goodsColumns };
